package com.ybq.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author ly
 * @email 664162337@qq.com
 * @date 2020/9/28 17:32
 */
@Controller
public class LoginController {
    
    @ResponseBody
    @RequestMapping({"/", "/index"})
    public String index() {
        return "index";
    }
    
    @ResponseBody
    @RequestMapping("/user1")
    public String user1() {
        return "user1";
    }
    
    @ResponseBody
    @RequestMapping("/user2")
    public String user2() {
        return "user2";
    }
}
